@nice2dev/ui 1.0.29 → 1.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +512 -0
- package/README.md +30 -31
- package/dist/NiceBackupStatusBadge.doc-Bx2bFmBQ.cjs +1 -0
- package/dist/NiceBackupStatusBadge.doc-CdDxIQ-M.js +25 -0
- package/dist/NiceCalendarScheduler.doc-BEtQkZjV.cjs +9 -0
- package/dist/NiceCalendarScheduler.doc-D__LRgOx.js +33 -0
- package/dist/NiceConfirmDialog-B57cl_F7.cjs +1 -0
- package/dist/NiceConfirmDialog-BiTJVR4-.js +81 -0
- package/dist/NiceConfirmDialog-Bjw_rN4o.cjs +1 -0
- package/dist/NiceConfirmDialog-N9fBTLYm.js +81 -0
- package/dist/NiceDrawingCanvas.doc-Dv5vB4gY.js +32 -0
- package/dist/NiceDrawingCanvas.doc-Ww9zz17x.cjs +8 -0
- package/dist/NiceErrorBoundary-1H751jK7.cjs +1 -0
- package/dist/NiceErrorBoundary-B-txoU3Y.js +709 -0
- package/dist/NiceErrorBoundary-BD-uqk_q.js +709 -0
- package/dist/NiceErrorBoundary-CIPXaYik.cjs +1 -0
- package/dist/NiceFileManagerViews.doc-CKlnm6cX.cjs +1 -0
- package/dist/NiceFileManagerViews.doc-Cg21DArG.js +25 -0
- package/dist/NiceForm-BNZB31Pg.js +4499 -0
- package/dist/NiceForm-CPyAXxBO.cjs +1 -0
- package/dist/NiceForm-DGUTmaZT.js +5014 -0
- package/dist/NiceForm-DmU-gmyv.cjs +382 -0
- package/dist/NiceMegaMenu.doc-7UyOCd3l.cjs +7 -0
- package/dist/NiceMegaMenu.doc-zeIyVa65.js +31 -0
- package/dist/NiceModal-BClAtR5T.js +95 -0
- package/dist/NiceModal-Bj53SKLI.js +95 -0
- package/dist/NiceModal-DC0UlQhc.cjs +1 -0
- package/dist/NiceModal-iKwtagFB.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-BBOg9g0b.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-BO8Hw_W9.js +7619 -0
- package/dist/NiceModuleLifecyclePanel-Ch7HRRoy.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-DtuXRiLR.js +6991 -0
- package/dist/NiceModuleLifecyclePanel.css +1 -1
- package/dist/NicePagination-BVo-4KAD.js +172 -0
- package/dist/NicePagination-Bjxy9aEc.js +172 -0
- package/dist/NicePagination-CaohvQsY.cjs +1 -0
- package/dist/NicePagination-CfFfNwrg.cjs +1 -0
- package/dist/NicePinCodeInput-DsyLuc0b.cjs +696 -0
- package/dist/NicePinCodeInput-nuRCN-9R.js +13223 -0
- package/dist/NiceSavedQueryPanel-BBFV4qiF.js +6969 -0
- package/dist/NiceSavedQueryPanel-CH5c3rUG.js +6988 -0
- package/dist/NiceSavedQueryPanel-CsiVNkCT.cjs +596 -0
- package/dist/NiceSavedQueryPanel-aQrEmmcC.cjs +596 -0
- package/dist/NiceScannerControl-Cd5KXJA9.js +12769 -0
- package/dist/NiceScannerControl-DZsERSw_.cjs +698 -0
- package/dist/NiceScannerControl.css +1 -0
- package/dist/NiceWindow-BoDzlGk-.js +1621 -0
- package/dist/NiceWindow-Cm9E6EAi.cjs +1 -0
- package/dist/NiceWindow-DgONWxBm.cjs +1 -0
- package/dist/NiceWindow-FMrVS7zo.js +1603 -0
- package/dist/charts-B90sSFeJ.cjs +761 -0
- package/dist/charts-Bs0aDM0X.js +4671 -0
- package/dist/charts-DaLf19vS.js +4671 -0
- package/dist/charts-DjjKkw0q.cjs +761 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.mjs +1 -1
- package/dist/core-BUTtIHg0.js +27766 -0
- package/dist/core-BUsZ7_vI.js +27914 -0
- package/dist/core-CESNSRyS.cjs +122 -0
- package/dist/core-CLfcCDKc.cjs +122 -0
- package/dist/data-branching-ByQdcjKO.cjs +1 -0
- package/dist/data-branching-D7l_kILW.cjs +1 -0
- package/dist/data-branching-lJ07lDN-.js +6255 -0
- package/dist/data-branching-psTzlcrT.js +6255 -0
- package/dist/data-branching.cjs +1 -1
- package/dist/data-branching.mjs +1 -1
- package/dist/data.cjs +1 -1
- package/dist/data.d.ts +41 -37
- package/dist/data.mjs +18 -19
- package/dist/devops-Bi8MXtko.js +8165 -0
- package/dist/devops-D7bQ3rE4.cjs +17 -0
- package/dist/devops-On_1wRf9.cjs +17 -0
- package/dist/devops-jCmpD6O-.js +8165 -0
- package/dist/devops.cjs +1 -1
- package/dist/devops.mjs +3 -3
- package/dist/editors.cjs +1 -1
- package/dist/editors.d.ts +219 -431
- package/dist/editors.mjs +48 -56
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.mjs +3 -3
- package/dist/index-BDH1yDSg.js +69235 -0
- package/dist/index-BpixglWg.js +69337 -0
- package/dist/index-C9njkNOD.cjs +5470 -0
- package/dist/index-DLR-aWZR.cjs +5506 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +798 -1059
- package/dist/index.mjs +741 -756
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.mjs +24 -24
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +25 -213
- package/dist/navigation.mjs +143 -151
- package/dist/no-code-8lO7o6xi.js +7425 -0
- package/dist/no-code-BHo5WrXr.js +7425 -0
- package/dist/no-code-DyA_1_Th.cjs +332 -0
- package/dist/no-code-K8tOLNew.cjs +332 -0
- package/dist/no-code.cjs +1 -1
- package/dist/no-code.mjs +1 -1
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.d.ts +12 -0
- package/dist/overlays.mjs +82 -82
- package/dist/pickerCommons-BEc3pZ_s.js +2044 -0
- package/dist/pickerCommons-CORo9j2a.js +2119 -0
- package/dist/pickerCommons-CrITwM88.cjs +1 -0
- package/dist/pickerCommons-D3WShRrR.cjs +1 -0
- package/dist/style.css +5 -5
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,517 @@
|
|
|
1
1
|
# [1.0.27] — 2026-06-07
|
|
2
2
|
|
|
3
|
+
## 1.0.31
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2f9e5d4: Showcase-feedback round 10 (editors state/props + bugs + datetime consolidation):
|
|
8
|
+
- NiceCheckbox: tri-state `indeterminate` now reaches all three states; expose
|
|
9
|
+
readOnly/loading/labelPlacement/errorPlacement in the props panel.
|
|
10
|
+
- NiceToggle/NiceRating: expose readOnly/loading/error/placement props; Rating
|
|
11
|
+
`loading` now replaces the stars with a spinner.
|
|
12
|
+
- NiceRadioGroup / NiceTagBox: implement `readOnly` (was ignored).
|
|
13
|
+
- NiceNumberInput: value stays right-aligned on blur; new `suffixSeparator` prop
|
|
14
|
+
(default false) gating the value↔suffix divider.
|
|
15
|
+
- NiceDatePicker: datetime shows a dot separator instead of the ISO `T` (emitted
|
|
16
|
+
value keeps `T`); datetime mode gains `showSeconds`, `minuteStep`, `showNow`,
|
|
17
|
+
and `hourFormat` (native picker) — ported from the now-removed
|
|
18
|
+
NiceDateTimePicker.
|
|
19
|
+
- NiceTimePicker: honor the `placeholder` prop.
|
|
20
|
+
- NiceSlider: more spacing around a left-placed label.
|
|
21
|
+
|
|
22
|
+
Removed **NiceDateTimePicker** (breaking): its datetime capability is covered by
|
|
23
|
+
NiceDatePicker's datetime mode; NiceForm, ui-forms `formUtils`, and ui-core
|
|
24
|
+
`adapters` now resolve datetime fields to NiceDatePicker.
|
|
25
|
+
|
|
26
|
+
- 86a2844: Showcase-feedback round 11:
|
|
27
|
+
- Fixed two "auto-preview unavailable" crashes: NiceDatePicker (a scraped
|
|
28
|
+
`type:"text"` catalog default the new masked field threw on — stripped +
|
|
29
|
+
hardened `buildFormatSpec`) and NiceColorPalette (array `value` was
|
|
30
|
+
string-wired — AutoDemo now recognizes `T[]` value props).
|
|
31
|
+
- NiceCheckbox: `label`/`title` are now editable text in the demo props panel.
|
|
32
|
+
- NiceCalendar: no longer full-width by default (`width:fit-content`); `fullWidth`
|
|
33
|
+
exposed as an opt-in prop.
|
|
34
|
+
- NiceMaskedInput: sized to its mask (demo passes a real mask).
|
|
35
|
+
- NicePickList: fixed list styling (`__list` selector), stable panel width when
|
|
36
|
+
search is hidden, per-size rules, and a drag affordance for `sortable`.
|
|
37
|
+
- NiceMention: implements `loading`/`labelPlacement`/`errorPlacement` (were
|
|
38
|
+
ignored) + xs/md/xl sizes.
|
|
39
|
+
- NiceUpload: props now show in the demo; supports an icon-only dropzone (clear
|
|
40
|
+
`text`); removed a raw glyph in favour of a NiceIcon.
|
|
41
|
+
|
|
42
|
+
Removed 5 controls (breaking, user-directed): **NiceCurrencyInput**,
|
|
43
|
+
**NicePhoneInput**, **NiceVatInput**, **NiceTaxRatePicker** (NiceForm's phone
|
|
44
|
+
field → `NiceTextInput type="tel"`); **NiceCardRadioGroup** folded into
|
|
45
|
+
**NiceCardGroup**, which now accepts `value`/`onChange`/`name` to act as a
|
|
46
|
+
single-select card radio group.
|
|
47
|
+
|
|
48
|
+
- 02193f1: Consolidated all file-upload controls into **NiceUpload** (breaking, user-directed).
|
|
49
|
+
|
|
50
|
+
NiceUpload absorbed the full upload engine from the former NiceFileUpload:
|
|
51
|
+
- `uploadUrl` / `uploadHandler` / `uploadHeaders` + a default XHR handler with real
|
|
52
|
+
progress; `autoUpload`, `concurrentUploads`, retry/cancel, `maxRetries`, and
|
|
53
|
+
**chunked upload** (`chunkSize` / `chunkThreshold`) with a per-file status
|
|
54
|
+
state machine (pending/uploading/success/error/cancelled).
|
|
55
|
+
- Validation (`minFileSize` / `validateFile` / accept-type errors), image/video
|
|
56
|
+
previews + file-type icons, `listMode` (list/grid/compact), `previewSize`,
|
|
57
|
+
`renderPreview` / `renderFileItem`, `keepFilesAfterUpload`, `initialFiles`.
|
|
58
|
+
- `variant="button"` (button-only trigger) and custom `dropChildren` drop surface;
|
|
59
|
+
an imperative handle via the optional `apiRef` prop.
|
|
60
|
+
- Icon-only dropzone (empty `text`); all strings routed through i18n.
|
|
61
|
+
|
|
62
|
+
**Removed** (→ use NiceUpload): `NiceFileUpload`, `NiceDropZone`,
|
|
63
|
+
`NiceFilePickerButton`, and the deprecated `NiceFileUploader` alias. NiceForm's
|
|
64
|
+
`file` field now renders `NiceUpload`. The engine types (`FileInfo`,
|
|
65
|
+
`UploadStatus`, `ChunkInfo`, `UploadResponse`, `UploadRequest`, `UploadHandler`,
|
|
66
|
+
`FileItemActions`, `NiceUploadHandle`) are re-exported from NiceUpload.
|
|
67
|
+
|
|
68
|
+
- c925f37: Showcase-feedback round 12 — control fixes:
|
|
69
|
+
- **NiceAutocomplete / NiceSelect / NiceToggleGroup**: fixed an "auto-preview
|
|
70
|
+
unavailable" crash — the demo harness treated the union `string | string[]` as
|
|
71
|
+
array-only and dropped value/onChange wiring, leaving `value` undefined.
|
|
72
|
+
NiceAutocomplete also hardens its internal value seed.
|
|
73
|
+
- **NiceCalendar**: no longer always full-width — the inner grid was `width:100%`,
|
|
74
|
+
which defeats `fit-content` (it's now `auto`, and 100% only under `fullWidth`).
|
|
75
|
+
Day cells are square, and `size` finally scales them (it was inert).
|
|
76
|
+
- **NiceLookup**: stable width regardless of the selected value (an inline
|
|
77
|
+
`width:fit-content` was overriding all CSS); override with `controlWidth`.
|
|
78
|
+
- **NicePickList**: `sortable` now shows a drag handle (the reorder logic already
|
|
79
|
+
worked but had no affordance); the control no longer narrows when `searchable`
|
|
80
|
+
is off; `size` now scales icons, buttons and text — not just spacing.
|
|
81
|
+
- **NiceKnob**: `showValue` works — an empty `valueTemplate` was blanking the label.
|
|
82
|
+
- **NiceRating**: `loading` keeps the star outlines visible beside the spinner.
|
|
83
|
+
- **NiceSegmentedControl**: `loading` hides the segment labels; new
|
|
84
|
+
`errorPlacement="bottom" | "right"`.
|
|
85
|
+
- **NiceRangeSlider**: no more literal "undefined" labels — the documented API was
|
|
86
|
+
stale, so `startValue`/`endValue` were never applied; they now default to the
|
|
87
|
+
track bounds and `onChange` is optional (fixes a drag crash).
|
|
88
|
+
- **NiceDateRangeBox**: new `dateFormatPreset` (and legacy `type`) forwarded to
|
|
89
|
+
both inner pickers — datetime, month, week and time ranges, not just dates.
|
|
90
|
+
|
|
91
|
+
- 3d38679: Merged **NiceTimePicker** into the date/time field and renamed
|
|
92
|
+
**NiceDatePicker → NiceDateTimePicker** (breaking, user-directed).
|
|
93
|
+
|
|
94
|
+
Before removing NiceTimePicker, its time-only capabilities were ported so nothing
|
|
95
|
+
is lost:
|
|
96
|
+
- `hourFormat="12"` now renders an AM/PM toggle beside the field (it was declared
|
|
97
|
+
but a no-op before).
|
|
98
|
+
- Countdown subsystem: `countdown` / `targetDate` / `onTargetChange` /
|
|
99
|
+
`countdownFormat` (`verbose|compact|short|minimal|words`) / `formatCountdown` /
|
|
100
|
+
`countdownLabel` / `countdownInterval` / `countdownDoneText` with a live label.
|
|
101
|
+
- `min`/`max` now clamp the typed masked value (not just the native companion).
|
|
102
|
+
- ↑/↓ arrow stepping of the last time segment, honouring `minuteStep`.
|
|
103
|
+
|
|
104
|
+
`NiceTimePicker` is removed — use `NiceDateTimePicker` with
|
|
105
|
+
`dateFormatPreset="time"` (or `type="time"`). Consumers (NiceForm's time field,
|
|
106
|
+
ui-forms `formUtils`, the scheduler views, the view registry) were repointed.
|
|
107
|
+
`NiceDateRangeBox` also gained a `dateFormatPreset`/`type` prop forwarded to both
|
|
108
|
+
inner pickers. The `NiceDateFormatPreset` type name is unchanged.
|
|
109
|
+
|
|
110
|
+
- 7771af3: Round-13 showcase-feedback fixes across ~23 controls.
|
|
111
|
+
|
|
112
|
+
**Behaviour / bug fixes**
|
|
113
|
+
- **NiceUpload** — restored the dropzone look (icon + themed box + hover tint;
|
|
114
|
+
`variant` now defaults to `"dropzone"`).
|
|
115
|
+
- **NiceCard** — `selected` now shows a ring (drawn on a `::after` pseudo-element
|
|
116
|
+
so the display-style inline chrome can't override it).
|
|
117
|
+
- **NiceMenu** — the active-item highlight fills the bar; `separated` (default)
|
|
118
|
+
gained a subtle toolbar surface.
|
|
119
|
+
- **NiceLookup** — implemented `disabled` (gray-out), `readOnly` (inert),
|
|
120
|
+
`loading` (spinner), and `labelPlacement` / `errorPlacement`.
|
|
121
|
+
- **NiceColorPicker** — the palette popup follows the theme instead of always
|
|
122
|
+
rendering light; hex input honours `withAlpha`; `withAlpha`/`compact` are now
|
|
123
|
+
documented. **`showInput` and `showRandom` now default to `false`** (was `true`).
|
|
124
|
+
- **NiceSignature** — theme-aware canvas (empty `penColor`/`backgroundColor`
|
|
125
|
+
resolve to the theme's text/background), plus a `label` prop and an
|
|
126
|
+
`onChangeDataUrl` callback ported from the removed NiceSignaturePad.
|
|
127
|
+
- **NiceSegmentedControl** — the active thumb is hidden while `loading`.
|
|
128
|
+
- **NiceAutocomplete** — multiple-mode selections render as separate bordered
|
|
129
|
+
chips with per-chip remove; the clear button matches the other controls.
|
|
130
|
+
- **NiceCalendar** — `multiple` works (uncontrolled fallback); `min`/`max` only
|
|
131
|
+
apply to complete ISO dates.
|
|
132
|
+
- **NiceDateRangeBox** — horizontal layout stays on one line; `labelPlacement`
|
|
133
|
+
works inline.
|
|
134
|
+
- **NicePickList** — drag-reorder works in both columns with insert-position
|
|
135
|
+
indicators. **When `sortable` is off (the default), both lists now auto-sort
|
|
136
|
+
alphabetically** (display-only; consumer arrays keep their order).
|
|
137
|
+
- **NiceColorPalette** — the hue ring supports press-and-drag.
|
|
138
|
+
- **NiceVirtualScroller** — `itemHeight`/`height` are honoured, and it gained
|
|
139
|
+
`size` + `disabled`/`loading`/`error` states.
|
|
140
|
+
- **NiceBusinessCard** — `variant` (card/inline/compact) and `showLogo` (with a
|
|
141
|
+
fallback avatar) now render.
|
|
142
|
+
|
|
143
|
+
**Breaking (patch, pre-1.2.0 convention)**
|
|
144
|
+
- **NiceSignaturePad is removed** — it duplicated **NiceSignature**. Its `label`
|
|
145
|
+
and data-URL value model were ported (`label`, `onChangeDataUrl`). Migrate to
|
|
146
|
+
`NiceSignature`; for a data-URL value use `onChangeDataUrl` or the imperative
|
|
147
|
+
`ref.toDataURL()`. (The separate touch-optimised `@nice2dev/ui-mobile`
|
|
148
|
+
`NiceSignaturePad` is unaffected.)
|
|
149
|
+
|
|
150
|
+
- 703358c: Round-14 showcase-feedback fixes across ~12 controls, plus a new custom date/time
|
|
151
|
+
popup and two control removals.
|
|
152
|
+
|
|
153
|
+
**Behaviour / bug fixes**
|
|
154
|
+
- **NiceCard** — `bordered` / `hoverable` / `selected` now render: the default
|
|
155
|
+
display-style no longer emits card chrome (border/shadow/background) inline, so
|
|
156
|
+
the base `.nice-card` classes own it. Standalone `selectable` cards gained an
|
|
157
|
+
uncontrolled fallback (click toggles selection when there is no controlled
|
|
158
|
+
`selected` or `NiceCardGroup`).
|
|
159
|
+
- **NiceMenu** — `panelAlign` is honoured in portal mode (start/end/center from
|
|
160
|
+
the panel width); the demo stops overriding `density` with inline
|
|
161
|
+
`paddingX`/`paddingY` and drives Size/State from the standard bars.
|
|
162
|
+
- **NiceVirtualScroller** — rows are flex-centered, `box-sizing:border-box` and
|
|
163
|
+
clipped, so every row is exactly `itemHeight` with vertically-centred, truncated
|
|
164
|
+
content.
|
|
165
|
+
- **NiceRangeSlider** — the `valuePlacement="right"` value sits after the track
|
|
166
|
+
(not between label and track); default control width (300px, like NiceSlider)
|
|
167
|
+
so `controlWidth` works.
|
|
168
|
+
- **NiceAutocomplete** — `readOnly` is implemented: the input is read-only and
|
|
169
|
+
typing / selecting / opening the list / removing tags are all blocked; clear and
|
|
170
|
+
tag-remove affordances hide.
|
|
171
|
+
- **NiceTopNav** — `showThemePicker` alone now renders `<NiceThemePicker>` (no
|
|
172
|
+
longer gated on `themePickerProps.themes`). Demo: nav items switch page content;
|
|
173
|
+
language & theme pickers are wired to real state and shown inline.
|
|
174
|
+
- **NiceUserMenu** — the dropdown portals to `document.body` (fixed positioning
|
|
175
|
+
from the trigger) so an `overflow:hidden` ancestor can't clip it.
|
|
176
|
+
- **NiceSplitter** — base `.nice-splitter` is `display:flex; width:100%`; the demo
|
|
177
|
+
gives the container a real size so there is a drag range.
|
|
178
|
+
- **NiceDateRangeBox** — demo exposes the State bar + `errorPlacement`; `readOnly`
|
|
179
|
+
forwards to both inner pickers for a true read-only range.
|
|
180
|
+
- **NiceEmpty** — demo seeds a title/description + icon + action so it renders
|
|
181
|
+
visibly.
|
|
182
|
+
- **NiceDateTimePicker** — the browser-native `showPicker()` is replaced by a
|
|
183
|
+
custom portaled popup for date / datetime / time (month/week keep the native
|
|
184
|
+
fallback): a calendar (NiceCalendar) + 24h hour/minute(/second) spinners and a
|
|
185
|
+
full-width footer (**Clear · Today · Now · Confirm**), theme-scoped and
|
|
186
|
+
translatable. Time is always 24h. New i18n keys `controls.now` /
|
|
187
|
+
`controls.clear` / `controls.today` / `controls.confirm` in all 30 languages.
|
|
188
|
+
|
|
189
|
+
**Kept (not a duplicate)**
|
|
190
|
+
- **NiceTerminalUI** stays — nav's `NiceConsole` is a command palette and
|
|
191
|
+
`NiceLogConsole` is output-only; NiceTerminalUI is an interactive REPL.
|
|
192
|
+
|
|
193
|
+
**Breaking (patch, pre-1.2.0 convention)**
|
|
194
|
+
- **NiceImageViewer is removed** — use **NiceGallery** / **NiceLightbox**. Its
|
|
195
|
+
export, facade re-export (`@nice2dev/ui-display`), showcase demo, catalog entry,
|
|
196
|
+
doc metadata (`docRegistry`/`docPreviews`), CSS and the Flutter widget are gone.
|
|
197
|
+
- **NiceThemeSwitcher is removed** — use **NiceThemePicker** (already used by the
|
|
198
|
+
shells). Its export, facade re-export, showcase demo, presets, catalog entry,
|
|
199
|
+
nav members and doc cross-references are gone.
|
|
200
|
+
|
|
201
|
+
- b2936fb: Round-15 — the three largest feedback items.
|
|
202
|
+
- **NiceCardView removed → consolidated into NiceCardGroup.** NiceCardGroup gains a
|
|
203
|
+
**data mode**: `items` + `renderCard` (+ `searchable` / `searchField` /
|
|
204
|
+
`searchPlaceholder` / `emptyText` / `onCardClick`) render a searchable grid of cards —
|
|
205
|
+
the former NiceCardView behaviour. Display / radio mode unchanged; new
|
|
206
|
+
`NiceCardGroupItem` type. NiceCardView is removed from `@nice2dev/ui` and
|
|
207
|
+
`@nice2dev/ui-data` (hard removal, patch per pre-1.2.0 convention).
|
|
208
|
+
- **NiceColorPalette — collapsed field + studio popup.** The palette now shows as a
|
|
209
|
+
NiceColorPicker-style field (label + a rectangle of all swatches + chevron); clicking a
|
|
210
|
+
swatch opens the full studio (wheel / harmonies / presets / contrast) in a popup that
|
|
211
|
+
portals into the theme host, so it integrates with every named theme. Value API
|
|
212
|
+
unchanged.
|
|
213
|
+
- **NiceKaraokeSongBrowser — keyboard + gamepad navigation.** The song list is a
|
|
214
|
+
roving-tabindex listbox (Arrow / Home / End / PageUp-Down move a focus cursor,
|
|
215
|
+
Enter/Space play or select) with gamepad support via `useGamepad` (new `enableGamepad`
|
|
216
|
+
prop, default true): D-pad / left stick move, A plays / selects, Start confirms.
|
|
217
|
+
|
|
218
|
+
- 3e794cc: Round-15 showcase-feedback fixes across ~23 controls (several re-opens of round 14).
|
|
219
|
+
|
|
220
|
+
**Real bugs**
|
|
221
|
+
- **NicePixelEditor** — the work-area canvas mounted at 0px (`.canvasContainer flex:1`
|
|
222
|
+
is inert inside the block `.nice-app-shell__content`); `height:100%` gives it size so
|
|
223
|
+
tools + drawing work.
|
|
224
|
+
- **NiceKanbanBoard** — a collapsed column no longer rotates its title
|
|
225
|
+
(`writing-mode:vertical-rl` removed, title hidden); it just collapses to a 44px strip.
|
|
226
|
+
- **NiceUserMenu** — the body-portalled dropdown now carries the theme (`scopeThemeClass`)
|
|
227
|
+
instead of always rendering light.
|
|
228
|
+
- **NiceMenu** — `size` now scales the leading icon (svg `em`, like NiceButton); `loading`
|
|
229
|
+
implemented (dim + spinner + inert).
|
|
230
|
+
- **NiceLookup** — `readOnly` hides the chevron; loading / errorPlacement=right /
|
|
231
|
+
labelPlacement=left no longer squeeze the value — the field is `fit-content` with a
|
|
232
|
+
min-width on the value area so those extend it instead of subdividing a fixed 220px.
|
|
233
|
+
- **NiceTreeSelect** — clicking a branch drills in (expand/collapse) instead of committing
|
|
234
|
+
the parent + closing; the expand chevron lost its stray UA button border.
|
|
235
|
+
- **NiceTreeGrid** — STATE toggles no longer change the control width; the dead `compact`
|
|
236
|
+
(missing base `nice-table` class) works; new `size` density.
|
|
237
|
+
- **NiceDateTimePicker** — the popup's time `<select>`s are replaced by vertical typable
|
|
238
|
+
spinners (▲/input/▼, wrap + minuteStep + arrows); the popup portals into the theme host
|
|
239
|
+
(`portalTarget`) so **every** named theme renders (not just light/dark); the showcase
|
|
240
|
+
translator now chains to the library dictionary so the footer (and every library key)
|
|
241
|
+
translates.
|
|
242
|
+
|
|
243
|
+
**New / additive props**
|
|
244
|
+
- **NiceAutocomplete** — `showAll` (default true): focusing opens the dropdown with all
|
|
245
|
+
options sorted alphabetically.
|
|
246
|
+
- **NiceCard / NiceCardGroup / NiceSpreadsheet / NiceActionSheet / NiceBottomSheet** — gain
|
|
247
|
+
`disabled`/`readOnly`/`loading`/`error` STATE and a dimensional `size`. NiceCard's demo is
|
|
248
|
+
a single card with every prop on the bar; NiceCardGroup's radio mode is opt-in (default
|
|
249
|
+
plain cards).
|
|
250
|
+
- **NiceDataGrid** — top-level `disabled`/`readOnly`/`error`; the demo puts `size` on the
|
|
251
|
+
Size bar + adds the State bar (the Filter button was already icon-only).
|
|
252
|
+
- **NiceTabs** — `iconOnly` (labels → tooltip) and `centered` (`true`|`false`|`'auto'`).
|
|
253
|
+
**NiceEventPlanning** exposes `tabsIconOnly` (default true) + `tabsCentered`.
|
|
254
|
+
- **NiceKaraokeUploader** — rebuilt on **NiceUpload** (accept `.txt`, `maxFileSize`,
|
|
255
|
+
`validateFile` rejects non-.txt / empty); the UltraStar parse is unchanged.
|
|
256
|
+
|
|
257
|
+
**Demo / config**
|
|
258
|
+
- NiceForm (seeded fields + right-aligned Age stepper), NiceTopNav (seeded theme picker),
|
|
259
|
+
NiceTable (Role column sortable), NiceDateRangeBox (errorPlacement moved to the ⚙ panel),
|
|
260
|
+
NiceUpload (empty-label dropzone is a deterministic square). **NiceDropDownBox** kept — its
|
|
261
|
+
demo now explains it vs NiceSelect / NiceLookup.
|
|
262
|
+
|
|
263
|
+
(NiceCardView removal + NiceColorPalette redesign + NiceKaraokeSongBrowser navigation are in
|
|
264
|
+
`fb-round15-big3.md`.)
|
|
265
|
+
|
|
266
|
+
- 93959ba: Round-16 showcase-feedback fixes (3 display controls).
|
|
267
|
+
- **NiceSkeleton** — the shimmer was barely visible in every theme (the `::after`
|
|
268
|
+
highlight used `--hover-bg`, which equals the base in light and is darker in dark).
|
|
269
|
+
A dedicated theme-aware `--nice-skeleton-base` / `--nice-skeleton-highlight` pair now
|
|
270
|
+
gives a genuinely lighter sweep in both themes; the reduced-motion guard now also
|
|
271
|
+
stops the pseudo-element animation.
|
|
272
|
+
- **NiceEmpty** — `size` now scales the control: added `.nice-empty--{xs..xl}` CSS
|
|
273
|
+
(padding, gap, title/description font, and the icon via `svg` width/height). The demo's
|
|
274
|
+
icon is `NtdSearch` on a no-results state and the Refresh action gains a leading icon.
|
|
275
|
+
- **NiceTerminalUI** — now theme-reactive: new `theme` prop (`auto` follows the page
|
|
276
|
+
theme via canonical tokens, default; `dark` pins classic VS Code; `matrix`). Added
|
|
277
|
+
`.nice-terminal--{size}` font scaling and real `disabled` / `loading` / `error` state
|
|
278
|
+
(previously untyped/unimplemented); `readOnly` no longer shrinks the box (height is
|
|
279
|
+
coerced to px + a `min-height`). New `NiceTerminalTheme` type. Its showcase demo is now
|
|
280
|
+
an interactive REPL (seeded output + a small command interpreter).
|
|
281
|
+
|
|
282
|
+
- da12dfb: Round-17 showcase-feedback fixes (6 select/editor controls).
|
|
283
|
+
- **Select-dropdown standardization** — the menus of NiceSelect / NiceAutocomplete /
|
|
284
|
+
NiceLookup / NiceTreeSelect / NiceDropDownBox now abut the input (new
|
|
285
|
+
`--nice-dropdown-gap`, default `0px`, replacing a hardcoded 4px). NiceAutocomplete /
|
|
286
|
+
NiceLookup / NiceTreeSelect gain an optional `menuGap` prop. NiceDropDownBox's menu
|
|
287
|
+
gains the standard border (its `.nice-dropdown` had no CSS), and its clear `×` moved
|
|
288
|
+
inside the trigger (it was rendering below the control). NiceTreeSelect option rows
|
|
289
|
+
get more left padding.
|
|
290
|
+
- **NiceDateTimePicker** — the time-spinner ▲/▼ buttons now support press-and-hold
|
|
291
|
+
auto-repeat (new shared `useHoldRepeat` hook in `@nice2dev/ui-core`). (The 24-hour
|
|
292
|
+
default was a demo-seed issue, fixed in the showcase.)
|
|
293
|
+
- **NiceLookup** — `readOnly` no longer changes the control height (the chevron slot is
|
|
294
|
+
kept), and `errorPlacement="right"` no longer widens the field when there's no error.
|
|
295
|
+
- **NiceCardGroup** — new `readOnly` (blocks selection without dimming) and `errorText`
|
|
296
|
+
props; `size` now scales the child cards (they inherit the group size via context),
|
|
297
|
+
not just the grid gap.
|
|
298
|
+
|
|
299
|
+
- bea5451: Round-18 showcase-feedback fixes (12 editor controls).
|
|
300
|
+
- **Select family** — NiceTreeSelect now has a stable trigger width (min-width like
|
|
301
|
+
NiceLookup, no longer tracking the value), its dropdown Search reuses the shared
|
|
302
|
+
`.nice-select__search` (left padding + normal vertical padding), and the empty state
|
|
303
|
+
gets padding. NiceAutocomplete inserts the option's DisplayName (label) on select
|
|
304
|
+
instead of the raw lowercase `value`. NiceLookup's `errorPlacement='right'` error is
|
|
305
|
+
absolutely positioned so it no longer widens the control.
|
|
306
|
+
- **NiceRangeSlider** — for `valuePlacement` right/bottom the value moves to a header
|
|
307
|
+
row above the track (mirroring NiceSlider) so it no longer overlaps the slider.
|
|
308
|
+
- **NiceDateRangeBox** — a stable `min-width` keeps disabled/readOnly from narrowing the
|
|
309
|
+
control; the loading spinner and `errorPlacement='right'` error align to the input row.
|
|
310
|
+
- **NiceDateTimePicker** — the time popup is now a slot-machine of vertical scroll-snap
|
|
311
|
+
columns for hours/minutes (animated, fade-masked); the ▲/▼ buttons keep hold-to-repeat
|
|
312
|
+
and typing a digit overwrites (INSERT).
|
|
313
|
+
- **NiceSkeleton** — new `animationSpeed` prop (seconds, default 1.8 ≈ 20% slower);
|
|
314
|
+
numeric-string `width`/`height` are coerced to px so both props apply.
|
|
315
|
+
- **NiceUpload** — new `labelPlacement` prop (`'right'` default | `'bottom'`): the text
|
|
316
|
+
sits beside the icon by default, below it when set.
|
|
317
|
+
- **NiceSignature** — the placeholder is translated (`signature.placeholder`, added to
|
|
318
|
+
the ui-core + i18n dictionaries for en/pl/de/fr/es/uk); the demo drops its synthetic
|
|
319
|
+
label + generic placeholder and the signature line is raised.
|
|
320
|
+
- **NiceColorPalette** — the collapsed field is a compact multi-colour strip at
|
|
321
|
+
NiceColorPicker's 32px height (chevron removed); the studio popup is split into
|
|
322
|
+
NiceTabs (Colors / Presets / Variations / Info / Schemes) and the swatch "kredki" are
|
|
323
|
+
reshaped into compact bars (chip + hex + remove ×) to the right of the wheel.
|
|
324
|
+
- **NiceGradientPicker** — redesigned to mirror NiceColorPicker/Palette: a compact 32×32
|
|
325
|
+
swatch field opens a portaled popup with NiceTabs (Editor / Presets / CSS); the
|
|
326
|
+
`NiceGradientValue`/`onChange` API and exported helpers are preserved.
|
|
327
|
+
|
|
328
|
+
- b248fe4: Round-19 showcase-feedback fixes (9 controls).
|
|
329
|
+
- **Select family (portaling).** NiceDropDownBox's menu wasn't growing the
|
|
330
|
+
container — it was `position:absolute` but clipped by a scroll-container
|
|
331
|
+
ancestor (z-index can't fix a clip). A new shared `useAnchoredPopup` hook
|
|
332
|
+
portals the dropdown to the theme host with fixed coords under its anchor, so
|
|
333
|
+
it escapes any ancestor `overflow`. Applied to all five: NiceDropDownBox,
|
|
334
|
+
NiceLookup, NiceSelect, NiceAutocomplete, NiceTreeSelect.
|
|
335
|
+
- **Keyboard nav + searchable.** New shared `useListKeyboardNav` gives NiceLookup
|
|
336
|
+
arrow-move-highlight + Enter-select (single result Enter) in list and grid
|
|
337
|
+
modes. NiceSelect's `searchable` now defaults to `true` (NiceDropDownBox stays
|
|
338
|
+
a generic container).
|
|
339
|
+
- **NiceDateTimePicker.** Time-popup arrows were reversed for the downward wheel
|
|
340
|
+
(▲ now decrements, ▼ increments); the column is taller (5 rows) with the ▲/▼
|
|
341
|
+
in a centre overlay flanking the value; and the centre value is a real editable
|
|
342
|
+
input again (type to overwrite). Hardened the scroll guard against rapid clicks.
|
|
343
|
+
- **NiceGradientPicker / NiceColorPalette.** Add `labelPlacement` ('top'|'left')
|
|
344
|
+
and real STATE (readOnly = looks enabled but won't open; loading spinner; error
|
|
345
|
+
ring + message). The popups reorganize so the live preview / colour wheel is a
|
|
346
|
+
fixed header with a confirm ✓ (edits apply live; ✓ closes) and the tabs switch
|
|
347
|
+
below it.
|
|
348
|
+
- **NiceSkeleton.** `size` now scales the real dimensions per variant; new
|
|
349
|
+
`orientation` prop (row of bars vs column stack). (STATE is N/A for a
|
|
350
|
+
placeholder.)
|
|
351
|
+
- **NiceUpload.** `labelPlacement:'bottom'` no longer stretches the box wide — the
|
|
352
|
+
label is width-capped and wraps downward under the icon.
|
|
353
|
+
- **NiceDateRangeBox.** readOnly now hides the pick + clear buttons; the loading
|
|
354
|
+
spinner / right error no longer narrow the date inputs at label-left + horizontal.
|
|
355
|
+
- **NiceSplitter.** Vertical resize fixed: initial sizes honour size/minSize/maxSize
|
|
356
|
+
(panes no longer start below their min and snap), the drag scales over-constrained
|
|
357
|
+
mins and enforces maxSize/collapsible, and setPointerCapture can't abort the drag.
|
|
358
|
+
|
|
359
|
+
- 565e729: fix(controls): showcase-feedback round 2 — re-open fixes
|
|
360
|
+
- **NiceProgress**: for `labelPlacement` top/bottom + `showValue`, the value now sits on the label's row (right-aligned) instead of beside the bar; left/right keep it at bar height.
|
|
361
|
+
- **NiceCarousel**: clamp `visibleCount` to ≥1 so an unset value no longer yields `100/0 = Infinity%` (which collapsed every slide into one row), and fix the track transform to advance a full slide per step.
|
|
362
|
+
- **NiceSkeleton**: `count > 1` now stacks the rows in a column container (they were unwrapped siblings that wrapped inside the parent flex row).
|
|
363
|
+
- **NiceGallery**: the caption text outline follows the theme (`color-mix` on `--text-primary`) instead of a fixed dark rgba, so it's legible in both light and dark.
|
|
364
|
+
|
|
365
|
+
(The NiceButton empty-label, NiceDropDownButton variant options, and NiceSpeedDialAction demo-frame fixes were showcase/doc-metadata only — no library change.)
|
|
366
|
+
|
|
367
|
+
- 783d0db: fix(controls): showcase-feedback round 3 — core controls, deeply honed
|
|
368
|
+
- **NiceButton**: icon-only is a properly padded square (symmetric padding per size), `fullWidth` stretches to 100% width with normal height (no giant square), and the loading spinner no longer collapses the box (the icon is kept in flow, hidden).
|
|
369
|
+
- **NiceDropDownButton**: the portaled menu now carries the trigger's theme (fixes white-on-white rows in scoped themes) and hover/selected set both background and colour; `readOnly` is now visually distinct from `disabled` (own class, not greyed) while still blocking the menu.
|
|
370
|
+
- **NiceSegmentedControl**: the active thumb now fills the selected segment exactly (removed a double-counted container inset that left a gap).
|
|
371
|
+
- **NiceBadge**: `size` now scales width + font too (the display style no longer pins `fontSize`/`padding` inline, so the size class governs).
|
|
372
|
+
- **NiceCarousel**: slide switching / autoPlay / circular work again (no longer frozen by a bare controlled `activeIndex`), `size` has real rules (arrow size + viewport height), and a new `fullWidth` prop (default `true`) toggles fill-vs-content width.
|
|
373
|
+
- **NicePDFViewer**: shows `1 / 1` and `100%` and stays interactive (non-positive controlled `page`/`zoom` are ignored); print converts a `data:` URI to a Blob URL so the tab actually prints.
|
|
374
|
+
- **NiceQRCode / NiceBarcodeGenerator**: the default module/bar colour follows the element's own theme surface (dark → light, light → dark) via a ref-aware `useThemeIsDark`; empty `color`/`background` are guarded.
|
|
375
|
+
- **NiceTooltip**: new `position: 'auto'` (now the default) picks the on-screen side with the most room (collision detection).
|
|
376
|
+
- **NiceFAQ**: items collapse regardless of `animateExpand` (only the transition is gated on it).
|
|
377
|
+
- **NiceTimeline**: horizontal mode draws its connector line and centres the item text; the body line renders at ~70%.
|
|
378
|
+
- **NiceDivider**: the text variant fills its container so the flanking lines are visible.
|
|
379
|
+
- **NiceSkeleton**: grouped rows (`count > 1`) get a definite width so `text`/`rect` variants render and animate (not just `circle`).
|
|
380
|
+
|
|
381
|
+
`useThemeIsDark` now accepts an optional element ref and resolves against that element's nearest theme scope (backwards-compatible: no-arg still observes `<html>`).
|
|
382
|
+
|
|
383
|
+
- ad262ee: fix(controls): showcase-feedback round 4 — core controls, every sub-point
|
|
384
|
+
- **NiceQRCode**: replaced the decorative (non-scannable) matrix generator with a real, spec-correct QR encoder (`display/qr/qrEncoder.ts`) — Reed-Solomon ECC, alignment patterns, BCH format/version info, mask selection; byte mode, versions 1–40. Verified scannable (decodes back to source across URL/alphanumeric/numeric/long/UTF-8 inputs at every ECC level). `errorCorrection` is now honoured.
|
|
385
|
+
- **NiceButton**: the icon now scales with `size` (icon spans carry `nice-btn__icon`; an em-based svg size tracks the per-size font-size).
|
|
386
|
+
- **NiceDropDownButton**: `loading` and `readOnly` now take effect in the demo (the props were missing from the doc/catalog, so the State toggles were dropped) — the component logic was already correct.
|
|
387
|
+
- **NiceCarousel**: `circular` now defaults to `true` and `autoPlay` to `7000` (library defaults, not just the showcase).
|
|
388
|
+
- **NiceGallery**: new `frameColor` prop for the letterbox/pillarbox bars, defaulting to the theme background instead of a hardcoded dark.
|
|
389
|
+
- **NicePDFViewer**: zoom now visibly scales the page (CSS transform on the iframe wrapper — the `#zoom` fragment is ignored for `data:` PDFs); default page area is A4 portrait (`aspectRatio`/`fit` props) showing the whole page at 100%.
|
|
390
|
+
- **NiceSegmentedControl**: removed the inter-segment `gap` that left slivers beside the active thumb — the highlight now fills the segment.
|
|
391
|
+
- **NiceTimeline**: horizontal connectors span dot-center to dot-center (no gaps, no leading stub); new `isFragment` prop draws leading/trailing lines to read as an excerpt.
|
|
392
|
+
- **NiceDivider**: `vertical` now takes effect (checked before the text branch) and renders a visible vertical rule.
|
|
393
|
+
- **NiceBarcodeGenerator**: fixed a regression where a stale catalog entry fed `width:2` and collapsed the canvas to a white sliver; non-positive `width`/`barWidth` are now treated as auto.
|
|
394
|
+
|
|
395
|
+
- 31e4a32: fix(controls): showcase-feedback round 5 — core controls follow-ups
|
|
396
|
+
- **NiceBadge**: `variant` now changes the colour — strip the display style's inline `background`/`color` (and border/shadow for `outline`/`subtle`) so the `.nice-badge--{variant}` class isn't overridden (mirrors NiceButton).
|
|
397
|
+
- **NiceSegmentedControl**: new `highlightFill` prop (default `true`) drops the container padding so the active highlight fills the frame with no slivers; the thumb is now recomputed when `highlightFill`/`size`/`block` change (fixes the crooked thumb when toggling).
|
|
398
|
+
- **NicePDFViewer**: fit-page shrink-wraps the A4 page (no fixed root height → no grey dead-space); the page area carries the aspect ratio.
|
|
399
|
+
- **NiceQRCode / NiceBarcodeGenerator**: the canvas is redrawn when the input toggles (`inputVisible` added to the draw-effect deps — toggling no longer blanks the code); the default `barColor`/(QR) colour follows the theme (empty default instead of a seeded purple).
|
|
400
|
+
- **NiceSpeedDialAction**: fan-out action items get an explicit, theme-consistent surface (`--bg-elevated` + `--text-primary` + border) so their icons can't render white-on-white when portaled.
|
|
401
|
+
|
|
402
|
+
- 9816474: fix(controls): showcase-feedback round 6 — data + nav controls (8 items)
|
|
403
|
+
- **NiceTabs**: `vertical` now lays out as a sidebar (tab list left, content right) instead of stacking, and the panel keeps a stable size so switching tabs doesn't make the control jump.
|
|
404
|
+
- **NiceTable**: sort icons match NiceDataGrid — a neutral double-chevron when idle, a single up/down chevron for asc/desc, muted (new `sort` NiceIcon).
|
|
405
|
+
- **NiceDataGrid**: the aggregate summary is pinned directly above the pagination (no more jump on page change — it's no longer a sticky `<tfoot>`); the Filter button is now a proper `nice-btn` with a filter icon; toolbar placeholder glyphs (`?`/`??`) replaced with NiceIcons.
|
|
406
|
+
- **NiceList**: `size` now scales row density/font; `disabled`/`readOnly`/`error` states work; the loading spinner is centered and hides the search bar; new optional `header` prop that stays visible during loading.
|
|
407
|
+
- **NiceMenu**: bar-variant (separated/ghost/borderless) item highlight fills the item box edge-to-edge (no gap frame, no rounded-pill shrink; rounding only on the bar's outer corners).
|
|
408
|
+
- **NiceContextMenu**: item highlight fills each row (removed the container top/bottom padding and added `overflow:hidden`, so no top gap, no side overflow, corners clipped to the container).
|
|
409
|
+
|
|
410
|
+
Plus demo polish: NiceCardView cards now have a coloured header, status badge and footer actions; the NiceSpeedDialAction demo drops its bounded container (just the button).
|
|
411
|
+
|
|
412
|
+
- 065995d: fix(controls): showcase-feedback round 7 — Editors value-entry, states, polish (9 items)
|
|
413
|
+
- **Editors value-entry (critical)**: text/number inputs across the Editors category could not accept typed input — the showcase harness (AutoDemo) seeded every optional `number` prop to `0`, so inputs received `maxLength=0` / `min=0,max=0` and were frozen. Fixed AutoDemo so an optional numeric prop with no real default stays `undefined` (component keeps its own default). Repairs NiceTextInput, NiceTextArea, NicePasswordInput, NiceHtmlEditor, NiceNumberInput, NiceNumericInput, NiceCurrencyInput, NiceTagInput, NiceFileUpload at once. (Showcase-only change.)
|
|
414
|
+
- **NiceSegmentedControl**: added `readOnly` / `loading` (spinner overlay) / `error` states (only `disabled` worked before).
|
|
415
|
+
- **NiceTreeGrid**: added `disabled` / `readOnly` / `error` states (only `loading` worked before).
|
|
416
|
+
- **NiceCard**: the `selected` state now shows a clear primary ring — the bordered rule was out-specifying the selected rule (specificity fix + stronger ring).
|
|
417
|
+
- **NiceMenu**: the "highlight fills the item box" fix now also covers the `solid` / `bordered` / `glass` bar variants (round 6 covered separated/ghost/borderless); `pills` keeps its rounded pills.
|
|
418
|
+
- **NiceDataGrid**: the Filter toolbar button is now icon-only (filter icon + a corner count badge, label in the tooltip/aria).
|
|
419
|
+
- **NiceKanbanBoard**: collapsing a column no longer rotates the header — it collapses to a clean narrow strip.
|
|
420
|
+
- **NiceCardView** (demo): the card header now fills the card top edge-to-edge (`overflow:hidden` on the card wrapper clips the full-bleed header to the rounded corners).
|
|
421
|
+
|
|
422
|
+
- 14119d6: fix(controls): showcase-feedback wave 1 — core control fixes
|
|
423
|
+
- **NiceButton**: `variant="outline"` now has a clearly visible border (`currentColor` instead of the faint `--border-color`); an empty/blank label turns the button into a square icon-only button (`.nice-btn--icon-only`), so `<NiceButton leftIcon ariaLabel />` can replace NiceIconButton.
|
|
424
|
+
- **NiceButtonGroup**: `loading` no longer repaints every button blue — each keeps its own colour while labels hide under the single overlay spinner.
|
|
425
|
+
- **NiceDropDownButton**: all variants work and match NiceButton colours (added `normalizeVariant` + the display-style class); the chevron is right-aligned; the trigger width responds to `size` (the grow-lock resets on size/variant change).
|
|
426
|
+
- **NiceProgress**: `labelPlacement="left"` renders the label again; `loading` shows animated diagonal stripes (now adds both `--striped` and `--animated`).
|
|
427
|
+
- **NiceTable**: new `size` prop (xs–xl, independent of `compact`); `compact` is tighter; the sort affordance shows on every sortable column (dimmed, highlighted when active).
|
|
428
|
+
- **NiceTabs**: the `size` prop is wired to CSS (font + tab padding); the `enclosed` variant is now visually distinct (folder-style boxed tabs) from `default`.
|
|
429
|
+
|
|
430
|
+
- 4910ead: feat!: remove 9 deprecated/redundant controls (BREAKING)
|
|
431
|
+
|
|
432
|
+
Per user feedback, these controls are removed from `@nice2dev/ui` and its facades
|
|
433
|
+
(`@nice2dev/ui-nav`, `@nice2dev/ui-display`, `@nice2dev/omniwerk-shell`):
|
|
434
|
+
|
|
435
|
+
| Removed | Use instead |
|
|
436
|
+
| -------------------------------------- | -------------------------------------------------------------------------------- |
|
|
437
|
+
| `NiceIconButton` | `NiceButton` with an empty label + `leftIcon` (now renders a square icon button) |
|
|
438
|
+
| `NiceToolbar` | `NiceMenu` |
|
|
439
|
+
| `NiceMultiView`, `NiceTabPanel` | `NiceTabs` |
|
|
440
|
+
| `NiceClassicShell`, `NiceCompactShell` | the other `Nice*Shell`s (`NiceDashboardShell`, `NiceModernShell`, …) |
|
|
441
|
+
| `NiceBottomNavigation` | `NiceDock` |
|
|
442
|
+
| `NiceOnboardingWizard` | `NiceWizard` |
|
|
443
|
+
| `NiceTenantSwitcher` | a plain dropdown (e.g. `NiceSelect`/`NiceDropDownButton`) |
|
|
444
|
+
|
|
445
|
+
Their exports, showcase demos/presets, doc metadata, and tooling entries
|
|
446
|
+
(view schema, component-type map, ESLint plugin) are gone. The internal
|
|
447
|
+
`NiceShowcase` tool was updated to `NiceButton`/`NiceMenu`. Verified: `@nice2dev/ui`
|
|
448
|
+
builds, all facades + showcase typecheck, and `lint:cycles` passes with no dangling
|
|
449
|
+
imports.
|
|
450
|
+
|
|
451
|
+
- 72b1b14: fix: showcase-feedback wave 4 — broken-render fixes
|
|
452
|
+
- **NiceVirtualScroller**: clamp a degenerate `itemHeight` (0/negative/NaN) so it no longer computes an infinite visible count and renders every row at once — that synchronous render was freezing the tab and blocking sibling demos.
|
|
453
|
+
- **NiceDataGrid**: add a non-breaking `size` prop (xs–xl density) and stabilize the pagination footer width (tabular-nums + reserved width) so the next/prev arrows don't jump between pages.
|
|
454
|
+
- **NiceVectorEditor** (`@nice2dev/ui-graphics`): fix the 0px work-area canvas — `.nice-app-shell__content` is a plain block so the editor's `flex:1` was inert and the absolutely-positioned `<svg>` gave the container no height; `.canvasContainer` now takes `height:100%`.
|
|
455
|
+
|
|
456
|
+
(The showcase demos for AppLayout / ImageViewer / UserMenu / PDFViewer / Spreadsheet / Divider / Skeleton / Tag / Tooltip / DataGrid were also fixed, but those are demo-config gaps with no library change.)
|
|
457
|
+
|
|
458
|
+
- 56db7a4: fix: showcase-feedback waves 5+6 — SIZE coverage + theme reactivity + systemic CSS repair
|
|
459
|
+
- **NiceBreadcrumb / NiceAccordion**: add the missing `--{xs..xl}` size CSS (the size class was emitted but only some sizes were styled).
|
|
460
|
+
- **NiceAvatarGroup**: clickable (`<a>`/`<button>`) avatars no longer lose their per-size font (`font: inherit` had reset it); initials scale with `size` again.
|
|
461
|
+
- **NiceLayout**: shell/sider/header/main/footer are now theme-reactive (they carried no bg/text tokens, and the sider's `var()` had a stray extra `)` that voided its background/border).
|
|
462
|
+
- **NiceDashboardLayout**: panels use `var(--bg-elevated)` instead of `var(--bg-primary)` (which equalled the canvas in dark, so panels vanished and only a thick border showed); added drag affordance (grab cursor + drag-over outline) and fixed the responsive grid selector name.
|
|
463
|
+
- **Systemic theme fix**: repaired **91 broken CSS declarations** in `controls-extended.css` that had an unbalanced extra `)` in a `var(--token, #hex))` fallback — the browser was dropping those declarations, so many controls (Layout, Dashboard, Scheduler, Gantt, …) rendered un-themed.
|
|
464
|
+
|
|
465
|
+
(NiceCardView was already correct from the prior FB8 commit; NiceKioskShell was a demo-config gap.)
|
|
466
|
+
|
|
467
|
+
- f04fb3f: fix: showcase-feedback wave 7 — polish, icons + additive props (14 controls)
|
|
468
|
+
- **NiceCarousel**: fix vertical-stacking (track is now a horizontal flex viewport); nav arrows use NiceIcon.
|
|
469
|
+
- **NiceTimeline**: render the `icon` field via NiceIcon (was literal text), even line rhythm, ~50% tighter item gap, wider xs–xl size spread.
|
|
470
|
+
- **NiceKanbanBoard**: a collapsed column now narrows to a slim vertical bar (was full-width-with-hidden-cards).
|
|
471
|
+
- **NiceGallery**: caption legibility via text-shadow outline (removed the translucent bar); demo wires showNavButtons/showIndicator/showThumbnails.
|
|
472
|
+
- **NiceSpeedDialAction**: default `direction` is now `right`; styling moved to a dedicated CSS (round FAB, fly-out onto the container); default `+` icon via NiceIcon; new optional `disabled`.
|
|
473
|
+
- **NiceCard**: catalog/demo now expose `bordered` (default true) + selectable/selected/hoverable/title so each prop's effect is visible (component already supported them).
|
|
474
|
+
- **NicePagination**: default `showInfo` → true, default `siblingCount` → 2.
|
|
475
|
+
- **NiceBarcode** / **NiceQRCode**: the top value field is a full `NiceTextInput` (forwarded `inputProps`) that can be hidden (`editable={false}`) while the code always renders; added `labelPlacement`/`onValueChange`; QR default color follows the theme. NiceBarcode `format` (symbology) is surfaced.
|
|
476
|
+
- **NiceDock**: demo uses the existing `contained` (embed-in-container) mode; hover now magnifies icons from the dock edge instead of shrinking them.
|
|
477
|
+
- **NiceSplitter**: horizontal splitters stay draggable below 768px (a responsive rule had force-stacked them).
|
|
478
|
+
- **NiceMenu**: vertical-menu highlight now fills the whole bar.
|
|
479
|
+
- **NiceNavbar** / **NiceContextMenu** (demos): replaced emoji/string-name icons with NiceIcon; fixed white-on-white context-menu hint via theme tokens.
|
|
480
|
+
|
|
481
|
+
- 5eb2ae1: remove(editors): drop NicePinCodeInput (duplicate of the OTP input)
|
|
482
|
+
|
|
483
|
+
**Breaking (shipped as patch per the pre-1.2.0 convention):** removed
|
|
484
|
+
`NicePinCodeInput`/`NicePinCodeInputProps` — it duplicated the OTP input. Use
|
|
485
|
+
`NiceInputOtp` (or `NiceOTPInput`) instead. Removed the component, its doc,
|
|
486
|
+
presets, demo, catalog entry, and all exports/re-exports.
|
|
487
|
+
|
|
488
|
+
- Updated dependencies [2f9e5d4]
|
|
489
|
+
- Updated dependencies [7771af3]
|
|
490
|
+
- Updated dependencies [703358c]
|
|
491
|
+
- Updated dependencies [da12dfb]
|
|
492
|
+
- Updated dependencies [bea5451]
|
|
493
|
+
- Updated dependencies [783d0db]
|
|
494
|
+
- Updated dependencies [9816474]
|
|
495
|
+
- @nice2dev/ui-core@1.0.30
|
|
496
|
+
- @nice2dev/i18n@1.0.30
|
|
497
|
+
|
|
498
|
+
## 1.0.30
|
|
499
|
+
|
|
500
|
+
### Patch Changes
|
|
501
|
+
|
|
502
|
+
- Library-wide consistency pass + showcase overhaul.
|
|
503
|
+
- **Universal app shell:** every genuine multi-panel editor/studio/designer/builder/workspace standardized onto `NiceAppShell` (slots + `flush`), incl. `NiceTeamsWorkspace` and `NiceAPIDesigner`. No public API changes — internal layout only.
|
|
504
|
+
- **Icons:** foreign icons (emoji, raw unicode glyphs, inline `<svg>`, FontAwesome) replaced with `@nice2dev/icons` / `NiceIcon` built-ins across the packages; ~110 built-in icon paths added to `NiceIcon`.
|
|
505
|
+
- **Control sizing:** every basic control now honours the full `xs · sm · md · lg · xl` size scale with working CSS — fixed `NiceCard`, `NiceAlert`, `NiceSkeleton`, `NiceDivider`, `NiceSearchInput`, `NiceCallout`, `NiceStatistic`, `NiceSegmentedControl`, `NiceCheckbox`, `NiceParagraph`, and a `NiceSpinner` CSS-shadow regression (`md` baseline unchanged). `NiceNumericInput` gained a `size` prop.
|
|
506
|
+
- **NiceKioskShell:** the `style` prop now overrides the default full-screen `position: fixed` (so it can be embedded contained).
|
|
507
|
+
- **Input devices + spatial navigation:** `NiceGamepad` / `NiceMicrophone` / `NiceDeviceManager` / `NiceDeviceTile` and `NavShell` spatial-navigation support.
|
|
508
|
+
- **Audio:** AudioVerse → `@nice2dev/ui-audio` parity (15 controls; optional `recharts` visualizers).
|
|
509
|
+
- **Display atoms + forms:** standardized atoms (`NiceBadge`/`NiceTag`/`NiceAvatarGroup`/`NiceProgress`/…), removed the deprecated `NiceStatusBadge` (migrated to `NiceBadge` variants), entity validation builder, selectable `NiceCard`.
|
|
510
|
+
- **Editors inside satellites** (`ui-ai`/`ui-api`/`ui-bi`/`ui-math`/`ui-video`/`ui-audio`/`events`) now declare `@nice2dev/ui` (and where used `@nice2dev/icons` / `@nice2dev/ui-core`) as peer dependencies.
|
|
511
|
+
|
|
512
|
+
- Updated dependencies
|
|
513
|
+
- @nice2dev/ui-core@1.0.29
|
|
514
|
+
|
|
3
515
|
## 1.0.29
|
|
4
516
|
|
|
5
517
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -178,37 +178,36 @@ usePreloadOnIdle([LazyComponents.CodeEditor.preload, LazyComponents.HtmlEditor.p
|
|
|
178
178
|
|
|
179
179
|
Form input components with consistent `NiceFormFieldProps` interface: `label`, `helperText`, `error`, `required`, `disabled`, `readOnly`, `size`, `name`.
|
|
180
180
|
|
|
181
|
-
| Component
|
|
182
|
-
|
|
|
183
|
-
| `NiceTextInput`
|
|
184
|
-
| `NiceTextArea`
|
|
185
|
-
| `NiceNumberInput`
|
|
186
|
-
| `
|
|
187
|
-
| `NiceSelect`
|
|
188
|
-
| `NiceCheckbox`
|
|
189
|
-
| `NiceToggle`
|
|
190
|
-
| `NiceRadioGroup`
|
|
191
|
-
| `NiceSlider`
|
|
192
|
-
| `NiceColorPicker`
|
|
193
|
-
| `NiceAutocomplete`
|
|
194
|
-
| `NiceLookup`
|
|
195
|
-
| `NiceCalendar`
|
|
196
|
-
| `NiceDateRangeBox`
|
|
197
|
-
| `NiceTagBox`
|
|
198
|
-
| `NiceRangeSlider`
|
|
199
|
-
| `NiceDropDownBox`
|
|
200
|
-
| `NiceHtmlEditor`
|
|
201
|
-
| `NiceForm`
|
|
202
|
-
| `NiceRating`
|
|
203
|
-
| `NiceOtpInput`
|
|
204
|
-
| `
|
|
205
|
-
| `
|
|
206
|
-
| `
|
|
207
|
-
| `
|
|
208
|
-
| `
|
|
209
|
-
| `
|
|
210
|
-
| `
|
|
211
|
-
| `NiceLookup` | `value`, `onChange`, `dataSource`, `displayExpr`, `valueExpr` | Lookup field |
|
|
181
|
+
| Component | Key Props | Description |
|
|
182
|
+
| -------------------- | ----------------------------------------------------------------------- | --------------------------- |
|
|
183
|
+
| `NiceTextInput` | `value`, `onChange`, `placeholder`, `type`, `clearable` | Standard text input |
|
|
184
|
+
| `NiceTextArea` | `value`, `onChange`, `rows`, `autoResize`, `maxLength` | Multi-line text input |
|
|
185
|
+
| `NiceNumberInput` | `value`, `onChange`, `min`, `max`, `step`, `format` | Numeric input with stepper |
|
|
186
|
+
| `NiceDateTimePicker` | `value`, `onChange`, `format`, `minDate`, `maxDate` | Date selection |
|
|
187
|
+
| `NiceSelect` | `value`, `onChange`, `options[]`, `searchable`, `clearable`, `multiple` | Dropdown select |
|
|
188
|
+
| `NiceCheckbox` | `checked`, `onChange`, `indeterminate` | Checkbox |
|
|
189
|
+
| `NiceToggle` | `checked`, `onChange`, `labelOn`, `labelOff` | Toggle switch |
|
|
190
|
+
| `NiceRadioGroup` | `value`, `onChange`, `options[]`, `direction` | Radio button group |
|
|
191
|
+
| `NiceSlider` | `value`, `onChange`, `min`, `max`, `step`, `showTooltip` | Single-value slider |
|
|
192
|
+
| `NiceColorPicker` | `value`, `onChange`, `format`, `presets[]` | Color picker with presets |
|
|
193
|
+
| `NiceAutocomplete` | `value`, `onChange`, `options[]`, `onSearch`, `debounce` | Autocomplete input |
|
|
194
|
+
| `NiceLookup` | `value`, `onChange`, `dataSource`, `displayExpr`, `valueExpr` | Lookup field |
|
|
195
|
+
| `NiceCalendar` | `value`, `onChange`, `minDate`, `maxDate`, `disabledDates` | Inline calendar |
|
|
196
|
+
| `NiceDateRangeBox` | `startDate`, `endDate`, `onChange`, `format` | Date range picker |
|
|
197
|
+
| `NiceTagBox` | `value`, `onChange`, `options[]`, `maxTags`, `allowCustom` | Tag/chip input |
|
|
198
|
+
| `NiceRangeSlider` | `value` (tuple), `onChange`, `min`, `max`, `step` | Dual-handle range slider |
|
|
199
|
+
| `NiceDropDownBox` | `value`, `onChange`, `renderContent`, `displayValue` | Generic drop-down container |
|
|
200
|
+
| `NiceHtmlEditor` | `value`, `onChange`, `toolbar`, `placeholder` | Rich text (HTML) editor |
|
|
201
|
+
| `NiceForm` | `children`, `onSubmit`, `layout`, `labelPosition` | Form layout wrapper |
|
|
202
|
+
| `NiceRating` | `value`, `onChange`, `max`, `icon`, `allowHalf` | Star/icon rating input |
|
|
203
|
+
| `NiceOtpInput` | `value`, `onChange`, `length`, `type` | One-time password input |
|
|
204
|
+
| `NiceMentionInput` | `value`, `onChange`, `users[]`, `trigger` | Text input with @mentions |
|
|
205
|
+
| `NiceTreeSelect` | `value`, `onChange`, `nodes[]`, `multiple` | Tree-based selection |
|
|
206
|
+
| `NiceMaskedInput` | `value`, `onChange`, `mask`, `placeholder` | Masked/formatted input |
|
|
207
|
+
| `NiceKnob` | `value`, `onChange`, `min`, `max`, `draggable` | Rotary knob input |
|
|
208
|
+
| `NicePickList` | `source[]`, `target[]`, `onChange` | Dual-list pick transfer |
|
|
209
|
+
| `NiceInlineEdit` | `value`, `onChange`, `renderDisplay`, `renderEditor` | Click-to-edit inline |
|
|
210
|
+
| `NiceLookup` | `value`, `onChange`, `dataSource`, `displayExpr`, `valueExpr` | Lookup field |
|
|
212
211
|
|
|
213
212
|
### Buttons (5 components)
|
|
214
213
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t="https://nice2dev.com/schemas/component-doc-v1.json",e="NiceBackupStatusBadge",s="Backup status indicator badge.",a="display",c="1.0.0",n="stable",o=[{name:"status",type:"'synced' | 'pending' | 'error' | 'syncing'",required:!0,description:"Backup status"},{name:"lastBackup",type:"Date",description:"Last backup timestamp"}],i=[{title:"Status Badge",code:'<NiceBackupStatusBadge status="synced" lastBackup={new Date()} />'}],p={keyboard:[],aria:["Status announcement"]},u=["NiceBadge"],d={$schema:t,name:e,description:s,category:a,since:c,status:n,props:o,examples:i,accessibility:p,seeAlso:u};exports.$schema=t;exports.accessibility=p;exports.category=a;exports.default=d;exports.description=s;exports.examples=i;exports.name=e;exports.props=o;exports.seeAlso=u;exports.since=c;exports.status=n;
|